//
//  DailyModel.swift
//  MM2
//
//  Created by 李成明 on 2022/1/1.
//

import UIKit

class DailyModel: BaseModel {
    
    var forumId: Int = 0
    var content: String = ""
    var imgList: String = ""
    var replyNum: Int = 0
    var likeNum: Int = 0
    var follow: Bool = false
    var like: Bool = false
    
    var authorInfo: User = User()
    
    var replyList: [DailyReplyModel] = []
    
    var imgArr: [String] {
        if imgList.count <= 5 {
            return []
        }
        return imgList.components(separatedBy: ",")
    }
}

class DailyReplyModel: BaseModel {
    var forumId: Int = 0
    
    var userId: Int = 0
    var userName: String = ""
    var touserId: Int = 0
    var touserName: String = ""
    var content: String = ""
}
